package com.ysd.lis.mapper.sys;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.base.MPJBaseMapper;
import com.ysd.lis.entity.*;
import com.ysd.lis.request.userPageParam;
import com.ysd.lis.vo.SysUserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * cold_chain.t_user Mapper 接口
 * </p>
 *
 * @author peng
 * @since 2021-10-08
 */
public interface SysUserMapper extends MPJBaseMapper<SysUser> {
    Page<Map> getUserList(Page page, @Param(Constants.WRAPPER) QueryWrapper queryWrapper);
    List<TUserDeptList> getUserDepartment(String userId);
    SysSingleUser getUserById(String userId);
    List<String> getUserRolePermissions(String userId);
    List<UserRoleMenuPermissionEntity> findUserRoleMenuPermissionList(String userId);
    List<TPermission> findUserRolePermissionList(String userId);

    List<Map> getUserGroup(String id);
    List<String> getAppMobPush(String menuName);

    Page<SysUserVo> getUserPageList(Page<SysUserVo> page, @Param("dto")  userPageParam userPageParam);

}
